package cn.itcast.bassm.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.http.NameValuePair;
import org.apache.ibatis.annotations.Param;
import org.springframework.ui.Model;
import org.springframework.web.multipart.MultipartFile;

import cn.itcast.bassm.pojo.Returnxx;
import cn.itcast.bassm.pojo.Unitdoor;
import cn.itcast.bassm.pojo.Uploadfile;
import cn.itcast.bassm.pojo.User;
import cn.itcast.bassm.pojo.UserInformation;
import cn.itcast.bassm.pojo.Userformation;
import cn.itcast.bassm.pojo.test1;

public interface UserService {

	public User queryUserById(int id);

	public String addAlarmCallBak();
	
	public Userformation queryUserByPowrd(String username,String password);
	
	public String addUserInformation(MultipartFile file,String name,String sex,String phong,String sfzid,String detailed,int state);
	
	public List<String> detectFace(String imgpath) throws Throwable;
	
	public String doPostFile(String urlStr, String paramName, String filePath);
	
	public boolean addWhitePersionto(String personServer, String name, int gender, long dbId, String features, String face_image,String phone);
	
	public String doPostJson(String urlStr, String jsonstr);

	public boolean addWhitePersion(String filepath, String name, String phone,String sex) throws Throwable;

	public String addFacePathFist(String filepath);
	
	public Returnxx addqueryUserById(String id) throws Throwable;
	
	public void updateUserState(int id,String state,String validTo);
	
	public void showProductsByPage(String pageNow, String name, Model model);
	
	public void showProductsByPageczy(String pageNow, String name, Model model);
	
	public void showFastregistrationcardnumberrepeating(String pageNow, String address, Model model);
	
	public void selectFinPhoneorUserNamefin(String phonename,String nameonefin,String yaddressallall,String pageNow,Model model);
	
	public long  getUserID(String name);
	
	public String DeledoBasicAuthPost(String urlStr, List<NameValuePair> params);
	
	public Returnxx Deleuserfin(String id,String idd);
	
	public String DeledoBasicuser(String urlStr, List<NameValuePair> params);
	 
	public String addUserImgToFist(String strimg, String name, String sex,
				String phong, String sfzid,String detailed,int state);
	 
	public Returnxx deleimg(String id,String yaddress);
	 
	 
	public String UserimgUploadFin(MultipartFile file);
	
	public Returnxx selectFinPhoneorUserName(String phonename,String nameonefin);
	
	public List<Uploadfile> selectloufin(String yid);
	
	public List<Unitdoor> selectloufinuser(String yaddressallall);
		
	public Returnxx UpselcetUserXxFin(int yid,String ydetailed,String yaddress,String yname,String cardnumber,String yidcar,String roomandnumber,String unitbuilding);
	
	public void TimeLod(String index,String idnumber );
	
	public Returnxx savekahaouser(String yname,String ysex,String cardnumber,String yaddress,String ydetailed );
	
	public Returnxx savekahaouserandadmin(String yname,String ysex,String cardnumber,String yaddress);
	
	public Returnxx modifythepasswordtolike(String yuan,String xin,String leixin,String yaddress);
	
	public Returnxx upuseronetwonuber(String id);
	
	public Returnxx deleonetwonuber(int id);
	
	public void showwubohui(String pageNow,  Model model); 
	
	public test1 showwubohui2();
	
	public String Incrementalandbackupservice(String starttime,String endtime);
	
	public Returnxx  upuserczy(String id,String auto,String detailed);
	
	public void Testtime() throws Exception;
}
